package com.bookmarket.entity;

import java.util.Date;

/**
 * @author Chen Zhaoguang
 * @date 2017/12/26 11:30
 */

/**
 * 购物车
 */
public class Shop {
    private int id;
    private Date createTime;//添加时间
    private String book_picture;//图片
    private Float book_price;//价格
    private String book_name;//名称
    private int book_num;//数量
    private Custom custom;//用户外键
    private Book book;//图书外键

    public Shop() {
    }

    public Shop(int id, Date createTime, String book_picture, Float book_price, String book_name, int book_num, Custom custom, Book book) {
        this.id = id;
        this.createTime = createTime;
        this.book_picture = book_picture;
        this.book_price = book_price;
        this.book_name = book_name;
        this.book_num = book_num;
        this.custom = custom;
        this.book = book;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getBook_picture() {
        return book_picture;
    }

    public void setBook_picture(String book_picture) {
        this.book_picture = book_picture;
    }

    public Float getBook_price() {
        return book_price;
    }

    public void setBook_price(Float book_price) {
        this.book_price = book_price;
    }

    public String getBook_name() {
        return book_name;
    }

    public void setBook_name(String book_name) {
        this.book_name = book_name;
    }

    public int getBook_num() {
        return book_num;
    }

    public void setBook_num(int book_num) {
        this.book_num = book_num;
    }

    public Custom getCustom() {
        return custom;
    }

    public void setCustom(Custom custom) {
        this.custom = custom;
    }

    public Book getBook() {
        return book;
    }

    public void setBook(Book book) {
        this.book = book;
    }
}
